package com.example.turnoverwarning.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName("mt_order")
public class Order {
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField( value = "store_id")
    private Long shopId;        // 关联店铺ID
    @TableField( value = "amount")
    private BigDecimal amount; // 订单金额
    @TableField( value = "PAY_TIME")
    private LocalDateTime createTime;
}